module SellHelper
  def type_option(ad_type_name)
    ad_type = AdType.find_by_name(ad_type_name)
    output = ""
    output += "<li class=\"regulartext\" style=\"text-align: justify;\">"
    output += "<font style=\"font-weight: bold;\">"
    output += link_to_remote ad_type.title, :url => { :action => "type_select", :id => ad_type.name }
    output += "</font> -"
    output += ad_type.description
    output += button_to_remote("Välj", "sell", "type_select", ad_type.name, "wait")
    output += "</li>"
    output
  end
end
